﻿using SocketBook7Server.Script.net;
using System;

namespace SocketBook7Server.Script.logic
{
    public partial class MsgHandler
    {
        public static void MsgPing(ClientState c, MsgBase msgBase)
        {
            //客户端每发一次消息包 运行一次
            Console.WriteLine("MsgPing");
            c.lastPingTime = NetManager.GetTimeStamp();
            Console.WriteLine("c.lastPingTime "+ c.lastPingTime);
            Console.WriteLine("c.lastPingTime1 "+ c.lastPingTime1);

            MsgPong msgPong = new MsgPong();
            NetManager.Send(c, msgPong);
        }
    }
}
